package com.cnhis.cloudhealth.clinical.clidoctor.clinewadvice.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.cnhis.cloudhealth.clinical.clidoctor.clinewadvice.bo.CliNewAdviceBo;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.newid.GetNewId;

@Service
public class CliNewAdviceImpl implements ICliNewAdvice
{
    @Autowired
    private CliNewAdviceBo cliNewAdviceBo;
    
    @Autowired
    private GetNewId getNewId;
    
    /**
     * Clinic_EditOrder_before_Judge 病人超过规定年龄，必须要输入收缩压和舒张压
     */
    @Override
    public ModelVo clinicEditOrderBeforeJudge(Map map)
        throws Exception
    {
        return cliNewAdviceBo.getclinicEditOrderBeforeJudge(map);
    }
    
    /**
     * 临床药物评价 Clinic_Drug_Judge
     */
    @Override
    public ModelVo clinicDrugJudge(Map map)
        throws Exception
    {
        return cliNewAdviceBo.clinicDrugJudge(map);
    }
    
    /**
     * 新开医嘱 Clinic_VAF1_Insert
     */
    @Override
    public ModelVo clinicVAF1Insert(Map map)
        throws Exception
    {
        
        long s = System.currentTimeMillis();
        ModelVo mo = cliNewAdviceBo.insertClinicVAF1(map);
        System.out.println("保存医嘱耗时=============="+(System.currentTimeMillis() - s));
        return mo;
    }
    
    /**
     * 根据医嘱单id删除医嘱 Clinic_Advice_CBM01_Del
     */
    @Override
    public ModelVo clinicAdviceCBM01Del(Map map)
        throws Exception
    {
        return cliNewAdviceBo.delclinicAdviceCBM01(map);
        
    }
    
    @Override
    public ModelVo clinicCAMInsert(Map map)
        throws Exception
    {
        
        return cliNewAdviceBo.execClinicCAMInsert(map);
    }
    
    @Override
    public ModelVo narcosisItemList(Map map)
        throws Exception
    {
        return cliNewAdviceBo.narcosisItemList(map);
    }
    
    @Override
    public ModelVo checkOfficeProperty(Map map)
        throws Exception
    {
        return cliNewAdviceBo.checkOfficeProperty(map);
    }
    
    @Override
    public ModelVo getTreamentOffice(Map map)
        throws Exception
    {
        return cliNewAdviceBo.getTreamentOffice(map);
    }
    
    @Override
    public ModelVo getExamineType(Map map)
        throws Exception
    {
        return cliNewAdviceBo.getExamineType(map);
    }
    
    @Override
    public ModelVo getOfficeById(Map map)
        throws Exception
    {
        return cliNewAdviceBo.getOfficeById(map);
    }
    
    @Override
    public ModelVo getVAL1(Map map) 
        throws Exception
    {
        return cliNewAdviceBo.getVAL1(map);
    }

    @Override
    public ModelVo geiYaoTuJingList(Map map)
        throws Exception
    {
        return cliNewAdviceBo.geiYaoTuJingList(map);
    }

    @Override
    public ModelVo zhenLiaoPinCiList(Map map)
        throws Exception
    {
        return cliNewAdviceBo.zhenLiaoPinCiList(map);
    }

    @Override
    public ModelVo getOperationpro() {
        return cliNewAdviceBo.selectOperationpro();
    }

    @Override
    public ModelVo getAnaesthesiaItem() {
        return cliNewAdviceBo.selectAnaesthesiaItem();
    }

    @Override
    public ModelVo zhongyaoyongfa()
    {
        return cliNewAdviceBo.zhongyaoyongfa();
    }

    @Override
    public ModelVo zhongyaoJiaozhu(Map map)
        throws Exception
    {
        return cliNewAdviceBo.zhongyaoJiaozhu(map);
    }

    @Override
    public ModelVo getYongyaomudiList()
    {
        return cliNewAdviceBo.getYongyaomudiList();
    }

    @Override
    public ModelVo shoushurenyuanList()
    {
        return cliNewAdviceBo.shoushurenyuanList();
    }
}
